package com.ruoyi.project.shop.mapper;

import com.ruoyi.project.shop.domain.ShopInfo;

import java.util.List;

public interface ShopInfoMapper {
    /**
     * 查询店铺列表
     * @param shop
     * @return
     */
    List<ShopInfo> selectShopList(ShopInfo shop);

    /**
     * 查询店铺明细
     * @param id
     * @return
     */
    ShopInfo selectShopById(String id);

    /**
     * 检查是否已存在相同账号的店铺
     * @param shop
     * @return
     */
    int checkShopByAccount(ShopInfo shop);

    /**
     * 新增店铺
     * @param shop
     * @return
     */
    int insertShop(ShopInfo shop);

    /**
     * 修改店铺
     * @param shop
     * @return
     */
    int updateShop(ShopInfo shop);

    /**
     * 删除店铺
     * @param id
     * @return
     */
    int deleteShop(String id);
}
